package com.func.eurekaconsumerhystrix.remote;

import com.func.eurekaconsumerhystrix.hystrix.HelloRemoteHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by txliu on 2019/6/25.
 */
@FeignClient(name = "eureka-provider",fallback = HelloRemoteHystrix.class)
public interface HelloRemote {
    @GetMapping("/hello")
    String hello(@RequestParam("name") String name);
}
